
class Employee:

    def __init__(self, name, employee_id,department,salary):
        self.name = name
        self.employee_id = employee_id
        self.department = department
        self.salary = salary

    def  give_raise(self,percentage):
        self.salary += self.salary * (percentage/100)
        print(f"Salary increased by {percentage}%. New salary: {self.salary}")

if __name__ == '__main__':
    # 使用Employee类
    emp1 = Employee("John Doe", 1234, "Engineering", 50000)
    print(f"Original salary: {emp1.salary}")

    emp1.give_raise(5)
    print(f"Updated salary: {emp1.salary}")